package com.whq.thrift.api.web.admin.service.admin;

import java.util.List;
import java.util.Map;

import com.whq.thrift.api.web.admin.db.admin.PermissionUri;
import com.whq.thrift.api.web.admin.db.admin.UserInfo;
import com.whq.thrift.api.web.admin.db.admin.UserMermission;

public interface UserInfoService {
	public void addRecord(UserInfo record);

	public List<UserInfo> findRecordsByMap(Map<String, Object> whereParams, int beginIndex, int maxCount);

	public void updateRecord(UserInfo record);

	public void deleteRecord(String id);

	public int findRecordCount(Map<String, Object> whereParams);

	public UserInfo findRecordById(String id);

	public List<PermissionUri> findPermissionByMap();

	public List<UserMermission> findUserMermissionByEmail(String email);

	public void delUserPermission(String email);

	public void addUserMermission(UserMermission record);
}
